package com.skyline.jfs.storage.bean.impl;

import java.io.IOException;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.skyline.jfs.cluster.dao.JFSNodeDao;
import com.skyline.jfs.namespace.dao.JFSFileDao;
import com.skyline.jfs.namespace.model.JFSFile;
import com.skyline.jfs.storage.bean.Loader;
import com.skyline.jfs.storage.dao.JFSStorageDao;
import com.skyline.jfs.storage.model.JFSAbsoluteStorage;
import com.skyline.jfs.storage.model.JFSStreamTranBlock;

@Component("loader")
public class LoaderImpl extends UnicastRemoteObject implements Loader {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1860947155803365526L;
	
	private JFSFileDao jfsFileDao;
	
	public LoaderImpl() throws RemoteException {
		super();
	}

	@Override
	public JFSStreamTranBlock load(String key) throws IOException, RemoteException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void startLoad(String key) throws IOException, RemoteException {
		// TODO Auto-generated method stub

	}
	
	public void setJfsFileDao(JFSFileDao jfsFileDao) throws java.rmi.RemoteException {
		this.jfsFileDao = jfsFileDao;
	}

	public JFSFileDao getJfsFileDao() throws java.rmi.RemoteException {
		return jfsFileDao;
	}
}
